package com.hb.study.design_patterns.proxy.static_proxy;

import com.hb.study.design_patterns.proxy.GamePlayerImpl;
import com.hb.study.design_patterns.proxy.IGamePlayer;

/**
 * 静态代理测试
 *
 * @author Mr.Huang
 * @version v0.1, StaticProxyMain.java, 2020/5/14 16:32, create by huangbiao.
 */
public class StaticProxyMain {

    public static void main(String[] args) {

        IGamePlayer iGamePlayer = new GamePlayerImpl("zhangsan");
        StaticProxy staticProxy = new StaticProxy(iGamePlayer);
        staticProxy.login("zhangsan");
        staticProxy.killBoss();
        staticProxy.upgrade();

    }

}

    